import React from 'react';

import styles from './index.module.less';

/*
* @author JinHang
* @description 头部的logo
* @date 2018/10/22 15:52
* @param {}
* @return {}
* */
export default class Logo extends React.Component {
  state = {
    logo: require('asset/images/logo.png'),
  };

  render() {
    const { moduleName = null } = this.props;
    const { logo } = this.state;

    return (
      <div className={styles.logoBox}>
        <div className={styles.imgBox}>
          <img src={logo} alt='logo' />
        </div>
        <div className={styles.moduleName}>
          {moduleName}
        </div>
      </div>
    );
  }
}
